import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import MYINPUT from '../components/MyInput'
import INDEX from '../views/index'

Vue.use(VueRouter)

const routes = [
  {
    path: '/my-el-dia',
    name: 'MY-EL-DIA',
    component: () => import(/* webpackChunkName: "vxe-table" */ '../components/el-ui/My-dia')
  },
  {
    path: '/my-vxe-table',
    name: 'MY-VXE-TABLE',
    component: () => import(/* webpackChunkName: "vxe-table" */ '../components/vxe-table/vxe-table')
  },
  {
    path: '/my-select',
    name: 'MY-SELECT',
    component: () => import(/* webpackChunkName: "MyTree" */ '../components/MySelect')

  },
   {
    path: '/my-tree',
    name: 'MY-TREE',
    component: () => import(/* webpackChunkName: "MyTree" */ '../components/MyTree')

  },
  {
    path: '/my-dialog',
    name: 'MY-DIALOG',
    component: () => import(/* webpackChunkName: "MyDialog" */ '../components/d-form')
  },
  {
    path: '/my-input',
    name: 'MY-INPUT',
    component: MYINPUT
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/',
    name: 'INDEX',
    component: INDEX
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
